package com.zx.dsptuneup_cloud.Tools;

import com.zx.dsptuneup_cloud.Util.UserUtil;


/**
 *  普通模式与开发者模式index转换
 *
 *  App.getContext().getEqData().getInputChannelArr().get(posotion).isMute();
 *  读取数据时对应index不同
 * */
public class ChannelIndexConvert {
    public static int convertIndex(int currentSelTitleIndex) {

        int posotion = 0;
        if(!UserUtil.isDevelopMode){  // 普通模式
            if(currentSelTitleIndex==1){
                posotion = 2;
            }
            if(currentSelTitleIndex==2){
                posotion = 4;
            }
            if(currentSelTitleIndex==3){
                posotion = 6;
            }
            if(currentSelTitleIndex==4){
                posotion = 7;
            }
            if(currentSelTitleIndex==5){
                posotion = 8;
            }
            if(currentSelTitleIndex==6){
                posotion = 12;
            }
        }else {
            posotion = currentSelTitleIndex;
        }
        return posotion;


    }
}
